<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "tbl_weixin_auth".
 *
 * @property integer $id
 * @property string $name
 * @property string $projectID
 * @property string $username
 * @property string $userinfo
 * @property integer $time
 * @property string $code
 */
class WeixinAuth extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'tbl_weixin_auth';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['time'], 'integer'],
            [['name', 'projectID', 'username', 'code'], 'string', 'max' => 255],
            [['userinfo'], 'string', 'max' => 2000],
           
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'name' => 'Name',
            'projectID' => 'Project ID',
            'username' => 'Username',
            'userinfo' => 'Userinfo',
            'time' => 'Time',
            'code' => 'Code',
        ];
    }
}
